/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.ucase.casemain.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.icinfo.framework.mybatis.mapper.annotation.Before;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import javax.persistence.*;

/**
 * 描述: 案件暂停恢复记录表 case_main_info_status_change_record_his 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2022年05月23日
 */
@Table(name = "upcase.case_main_info_status_change_record_his")
@Data
public class CaseMainInfoStatusChangeRecordHis implements Serializable {
    /**
     * id
     */
    @Id
    @Column(name = "id")
    @Before
    private String id;

    /**
     * 案件id
     */
    @Column(name = "case_id")
    private String caseId;

    /**
     * 案件编号
     */
    @Column(name = "case_number")
    private String caseNumber;

    /**
     * 案件变更类型：1延期；2中止;3恢复；4终止5撤销
     */
    @Column(name = "case_change_type")
    private String caseChangeType;

    /**
     * 案件变更生效状态：0未生效  1已生效 2 已恢复
     */
    @Column(name = "status")
    private String status;

    /**
     * 提交时间
     */
    @Column(name = "change_submit_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime changeSubmitTime;

    /**
     * 变更生效时间
     */
    @Column(name = "change_effect_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime changeEffectTime;

    /**
     * 恢复时间
     */
    @Column(name = "case_restore_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime caseRestoreTime;

    /**
     * 延期天数
     */
    @Column(name = "case_postpone_day")
    private Integer casePostponeDay;

    /**
     * 关联文书id
     */
    @Column(name = "document_id")
    private String documentId;

    /**
     * 历史表添加时间
     */
    @Column(name = "his_add_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime hisAddTime;

    /**
     * 变更理由补充理由
     */
    @Column(name = "change_reason")
    private String changeReason;
    /**
     * 变更理由补充理由
     */
    @Column(name = "change_reason_auxiliary")
    private String changeReasonAuxiliary;


    private static final long serialVersionUID = 1L;

}
